/**
 * 
 */
package com.dianba.commons.utils;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 *
 *
 * @author zhoucong
 * @date 2016年6月8日 下午8:31:45
 */
public class JsonUtil {
	public static String toJsonString(Object returnValue) {
		return JSONObject.toJSONString(returnValue, SerializerFeature.WriteMapNullValue,
				SerializerFeature.WriteNullListAsEmpty, SerializerFeature.WriteNullStringAsEmpty,
				SerializerFeature.WriteNullBooleanAsFalse);
	}

}
